﻿using HuaweiCloud.Dotnet.Samples.Common;
using Microsoft.EntityFrameworkCore;

namespace HuaweiCloud.Dotnet.Samples.ESports.Main.Entities
{
    [Index(nameof(UserId), nameof(EventsId))]
    public class CompletedEvents : BaseEntity<Guid>
    {
        public Guid UserId { get; set; }

        public Guid EventsId { get; set; }

        public CompletedEvents(Guid id,Guid userId, Guid eventsId)
        {
            Id = id;
            UserId = userId;
            EventsId = eventsId;
        }
    }
}
